package br.com.pixt;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.app.ActivityGroup;

public class TabConsulta extends ActivityGroup {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);

          //you can get the local activitymanager to start the new activity

          View view = getLocalActivityManager()
                                    .startActivity("ListaConsultas", new
          Intent(this,ListaConsultas.class)
                                    .addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP))
                                    .getDecorView();
           this.setContentView(view);

       }
    }

